import numpy as np
import pandas as pd

# 创建 np.array二维数组
np_array = np.array(
    [
        ["Alice", 10],
        ["Jack", 11],
        ["Tom", 12],
    ]
)

# 创建 DataFrame
df = pd.DataFrame(np_array, columns=["name", "age"])
print(df)
""" 
    name age
0  Alice  10
1   Jack  11
2    Tom  12
"""